package com.lss.cloud.apis;

import com.lss.cloud.Resp.ResultData;
import com.lss.cloud.entities.Pay;
import com.lss.cloud.entities.PayDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 2024/3/16-15:31
 * 功能:
 */
@FeignClient(value = "cloud-provider-payment-service")
public interface PayFeginApi {


    @PostMapping("pay/add")
    public ResultData addPay(@RequestBody PayDTO payDTO);
    @GetMapping("pay/get/{id}")
    public ResultData getPayById(@PathVariable("id") Integer id);
    @GetMapping("pay/get/info")
    String getInfo();
    @GetMapping(value = "/pay/circuit/{id}")
     String myCircuit(@PathVariable("id") Integer id);
    @GetMapping(value = "/pay/bulkhead/{id}")
    public String myBulkhead(@PathVariable("id") Integer id);
    @GetMapping(value = "/pay/ratelimit/{id}")
    public String myRatelimit(@PathVariable("id") Integer id);
    @GetMapping(value = "/pay/micrometer/{id}")
    public String myMicrometer(@PathVariable("id") Integer id);
    @GetMapping(value = "/pay/gateway/get/{id}")
    public ResultData<Pay> getById(@PathVariable("id") Integer id);
    @GetMapping(value = "/pay/gateway/info")
    public ResultData<String> getGatewayInfo();
}
